package com.eden.manage.mapper;

import com.eden.manage.dto.PlatDto;
import com.eden.manage.dto.user.UserDto;
import com.eden.manage.model.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eden.manage.req.query.PlatQuery;
import com.eden.manage.req.query.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 98050
* @description 针对表【user_info(用户登录信息表)】的数据库操作Mapper
* @createDate 2023-09-30 19:26:13
* @Entity com.eden.manage.model.UserInfo
*/
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    UserInfo selectUserByAccount(@Param("accountId") String accountId);
    UserInfo selectUserByToken(@Param("token") String token);

    int updateToken(@Param("accountId") String accountId,@Param("token") String token);

    List<UserDto> selectPageList(@Param("query") UserQuery query);

    int countByPage(@Param("query") UserQuery query);

    int updateUser(UserDto userDto);

    int deleteByAccount(@Param("account") String account);

}




